package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@TableName("sys_audit")
public class Audit extends Model<Audit> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("audit_id")
    private String auditId;
    @TableField("audit_pur_id")
    private String auditPurId;
    @TableField("audit_persion")
    private String auditPersion;
    @TableField("audit_pass")
    private Integer auditPass;
    @TableField("audit_name")
    private String auditName;
    @TableField("audit_date")
    private Date auditDate;
    @TableField("audit_opinoin")
    private String auditOpinoin;
    @TableField("audit_state")
    private Integer auditState;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuditId() {
        return auditId;
    }

    public void setAuditId(String auditId) {
        this.auditId = auditId;
    }

    public String getAuditPurId() {
        return auditPurId;
    }

    public void setAuditPurId(String auditPurId) {
        this.auditPurId = auditPurId;
    }

    public String getAuditPersion() {
        return auditPersion;
    }

    public void setAuditPersion(String auditPersion) {
        this.auditPersion = auditPersion;
    }

    public Integer getAuditPass() {
        return auditPass;
    }

    public void setAuditPass(Integer auditPass) {
        this.auditPass = auditPass;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public Date getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    public String getAuditOpinoin() {
        return auditOpinoin;
    }

    public void setAuditOpinoin(String auditOpinoin) {
        this.auditOpinoin = auditOpinoin;
    }

    public Integer getAuditState() {
        return auditState;
    }

    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Audit{" +
        "id=" + id +
        ", auditId=" + auditId +
        ", auditPurId=" + auditPurId +
        ", auditPersion=" + auditPersion +
        ", auditPass=" + auditPass +
        ", auditName=" + auditName +
        ", auditDate=" + auditDate +
        ", auditOpinoin=" + auditOpinoin +
        ", auditState=" + auditState +
        "}";
    }
}
